<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/page/include/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="${ctx}/layui/css/layui.css">
<script>
	var ctx = "${ctx}";
</script>
</head>
<body>
	<form class="layui-form" style="width: 80%;" id = "arf">
		<!-- 管理员id -->
		<input type="hidden" name="session_id" value="${activitySession.session_id }"
			id="session_id" />
		<div class="layui-form-item">
			<label class="layui-form-label">活动名称</label>
			<div class="layui-input-block">
				<input type="text" id="session_name" class="layui-input"
					name="session_name" value="${activitySession.session_name }">
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label">开始时间</label>
			<div class="layui-input-block">
				<input type="text" id="session_starttime" class="layui-input"
					name="session_starttime"
					value="${activitySession.session_starttime }">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">结束时间</label>
			<div class="layui-input-block">
				<input type="text" id="session_endtime" class="layui-input"
					name="session_endtime" value="${activitySession.session_endtime }">
			</div>
		</div>
		

		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit="" lay-filter="updateActivitySession">立即保存</button>
			</div>
		</div>
	</form>
	<script type="text/javascript" src="${ctx }/layui/layui.js"></script>
	<script type="text/javascript" src="${ctx }/js/activitySession/editActivitySession.js"></script>
	<script type="text/javascript">
	layui.use('laydate', function(){
		  var laydate = layui.laydate;
		//日期时间选择器
		  laydate.render({
		    elem: '#session_starttime'
		    ,type: 'datetime'
		  });  
		  laydate.render({
		    elem: '#session_endtime'
		    ,type: 'datetime'
		  });  
	});
	</script>
</body>
</html>